import { Controller } from "egg";
/* let NationEnum = {
    1: 'جۇڭگو',
    2: 'ئامېرىكا',
    3: 'ھىندىستان',
    4: 'ياۋروپا'
}
let SortEnum = {
    1: 'ھېكايە فىلىم',
    2: 'ھۆججەتلىك',
    3: 'قورقۇنچلۇق',
    4: 'فانتازىيە'
} */
export default class VideoController extends Controller {
    /**
     * 获取用户信息
     * */
    public async getVideoList() {
        this.ctx.body = await this.service.video.getVideo.getVideoList()
    }
    /**
     * 获取单个电影信息
     * */
    public async getSingleVideoDetail() {
        this.ctx.body = await this.service.video.getVideo.getSingleVideoDetail()
    }
    /**
     * 获取电影详细信息
     * */
    public async getVideoDetail() {
        this.ctx.body = await this.service.video.getVideo.getVideoDetail()
    }
    /**
     * 获取随机电影
     * */
    public async getRandomVideo() {
        this.ctx.body = await this.service.video.getVideo.getRandomVideo()
    }
    /**
     * 获取頻道列表
     * */
    public async getChannelList() {
        this.ctx.body = await this.service.video.getVideo.getChannelList()
    }
    /**
     * 统计播放次数
     * */
    public async analysis() {
        this.ctx.body = await this.service.video.getVideo.analysis()
    }
    /**
     * 根据关键词获取电影
     * */
    public async getVideoByQuery() {
        this.ctx.body = await this.service.video.getVideo.getVideoByQuery()
    }
    /**
     * 获取哦APP基本配置
     * */
    public async getAppBaseConfig() {
        this.ctx.body = await this.service.video.getVideo.getAppBaseConfig()
    }
}
